Add trait impls for core::cmp::Ordering#102
Add trait impls for core::cmp::Ordering#102isislovecruft merged 2 commits intodalek-cryptography:developfrom
core::cmp::Ordering#102Conversation
c21a112 to
258adb6
Compare
|
See #98 (comment); I think it's reasonable to impl I'll note that #98 would also have very cleanly fixed https://github.com/RustCrypto/crypto-bigint/pull/159/files/d4d99aa7599123cdbb6e4c341bba7b7061e84f8b#r1066410790, which also hand-generates an If we want to slim down #98 more, I could try removing |
No, I already had a code solution here: However it would need the changes in this PR to compile. It's pretty much the same one I suggested here: I think having Separately, I don't see how you consume a returned |
This type is `#[repr(i8)]`, making it possible to impl the following traits for it by casting to `i8` (and back, where appropriate): - `ConditionallySelectable` - `ConstantTimeEq` - `ConstantTimeGreater` - `ConstantTimeLess`
258adb6 to
c319c36
Compare
Orderingis#[repr(i8)], making it possible to impl the following traits for it by casting toi8(and back, where appropriate):ConditionallySelectableConstantTimeEqConstantTimeGreaterConstantTimeLess